Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim away netframework targets in source-build #5091

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

NikolaMilosavljevic
Copy link
Contributor

Bug

Fixes: NuGet/Home#12074

Regression? No

Description

This is part of the source-build work to enable trimming of net4* targets. Parent repos (installer and sdk) have been updated, so the next step is to update dependencies, like nuget.client.

Here's how this is consumed: dotnet/arcade#12785

Top-level tracking issue: dotnet/source-build#3014

This essentially just avoids building net4* TFMs when building Linux source build.

Tests

Infrastructure change specific for source-build.

Tested in full local source-build.

@NikolaMilosavljevic NikolaMilosavljevic requested a review from a team as a code owner March 14, 2023 00:16
@ghost ghost added the Community PRs created by someone not in the NuGet team label Mar 14, 2023
@NikolaMilosavljevic
Copy link
Contributor Author

@mmitche

@@ -23,7 +23,7 @@
<TargetFrameworksExeForSigning Condition=" '$(IsXPlat)' == 'true' ">$(NETCoreTargetFramework);netcoreapp5.0</TargetFrameworksExeForSigning>
<TargetFrameworksExeForSigning Condition="'$(DotNetBuildFromSource)' == 'true'">$(TargetFrameworksExe);net7.0</TargetFrameworksExeForSigning>
<TargetFrameworksLibrary>$(NETFXTargetFramework);$(NetStandardVersion)</TargetFrameworksLibrary>
<TargetFrameworksLibrary Condition="'$(DotNetBuildFromSource)' == 'true'">$(NETCoreTargetFramework);$(NETFXTargetFramework);$(NetStandardVersion)</TargetFrameworksLibrary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this change interesting.

This used to be something that was explicitly added for source build before, but now it's getting removed?
b5f0bb7

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the issue was that the netfx TFMs were referenced downstream in SDK. We're eliminating the use of the netfx TFMs in Linux source-build, so this should no longer be necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nkolev92 - yeah, that was probably needed for other repos that consumed nuget.client artifacts. We are removing all targeting of .NET FX from source-build now.

Copy link
Contributor Author

@NikolaMilosavljevic NikolaMilosavljevic Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing CI leg Apex Tests on Windows is not caused by my change, which is source-build (Linux) specific.

@nkolev92 nkolev92 merged commit 2da00ae into NuGet:dev Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TFM trimming, and elimination of net4* targeting in Linux source-build
4 participants